import { axios } from '@/utils/request'

/**
 * 查询导入数据的动态表头
 *
 * @author cy
 * @date 2022-07-28 18:35:51
 */
export function baseDataTablePage (parameter) {
  return axios({
    url: '/baseDataTable/page',
    method: 'get',
    params: parameter
  })
}

/**
 * 导入数据的动态表头列表
 *
 * @author cy
 * @date 2022-07-28 18:35:51
 */
export function baseDataTableList (parameter) {
  return axios({
    url: '/baseDataTable/list',
    method: 'get',
    params: parameter
  })
}

/**
 * 添加导入数据的动态表头
 *
 * @author cy
 * @date 2022-07-28 18:35:51
 */
export function baseDataTableAdd (parameter) {
  return axios({
    url: '/baseDataTable/add',
    method: 'post',
    data: parameter
  })
}

/**
 * 编辑导入数据的动态表头
 *
 * @author cy
 * @date 2022-07-28 18:35:51
 */
export function baseDataTableEdit (parameter) {
  return axios({
    url: '/baseDataTable/edit',
    method: 'post',
    data: parameter
  })
}

/**
 * 删除导入数据的动态表头
 *
 * @author cy
 * @date 2022-07-28 18:35:51
 */
export function baseDataTableDelete (parameter) {
  return axios({
    url: '/baseDataTable/delete',
    method: 'post',
    data: parameter
  })
}

/**
 * 导出导入数据的动态表头
 *
 * @author cy
 * @date 2022-07-28 18:35:51
 */
export function baseDataTableExport (parameter) {
  return axios({
    url: '/baseDataTable/export',
    method: 'get',
    params: parameter,
    responseType: 'blob'
  })
}
